package com.heiyanqiang.dao;

import com.heiyanqiang.domain.Permission;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PermissionDao {
    //查询所有资源权限
    @Select("select * from permission")
    List<Permission> findAll();

    /*
    *     private String permissionName;
    private String url;*/

    //添加资源权限
    @Insert("insert into permission (permissionName,url) values(#{permissionName},#{url})")
    void save(Permission permission);
}
